package org.jeecg.modules.wlhy.order.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.wlhy.customer.entity.HyCustomerAddressReceive;
import org.jeecg.modules.wlhy.customer.entity.HyCustomerAddressSend;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: hy_order
 * @Author: jeecg-boot
 * @Date:   2020-12-03
 * @Version: V1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class HyOrderInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "id")
	private String id;
	/**所属货主*/
	@Excel(name = "所属货主", width = 15, dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
	@Dict(dictTable = "hy_customer", dicText = "customer_name", dicCode = "id")
	@ApiModelProperty(value = "所属货主")
	private String customerId;
	/**货源号*/
	@Excel(name = "货源号", width = 15)
	@ApiModelProperty(value = "货源号")
	private String orderNum;
	/**货源类型(1指派2发布到货源大厅)*/
	@Excel(name = "货源类型(1指派2发布到货源大厅)", width = 15, dicCode = "order_type")
	@Dict(dicCode = "order_type")
	@ApiModelProperty(value = "货源类型(1指派2发布到货源大厅)")
	private String orderType;
	/**业务类型代码(代码集)*/
	@Excel(name = "业务类型代码(代码集)", width = 15, dicCode = "business_type_code")
	@Dict(dicCode = "business_type_code")
	@ApiModelProperty(value = "业务类型代码(代码集)")
	private String businessTypeCode;
	/**货物品类*/
	@Excel(name = "货物品类", width = 15)
	@ApiModelProperty(value = "货物品类")
	private String goodsType;
	/**货物单位(1吨2件3立方)*/
	@Excel(name = "货物单位(1吨2件3立方)", width = 15)
	@Dict(dicCode = "goods_unit")
	@ApiModelProperty(value = "货物单位(1吨2件3立方)")
	private String goodsUnit;
	/**货物名称*/
	@Excel(name = "货物名称", width = 15)
	@ApiModelProperty(value = "货物名称")
	private String descriptionOfGoods;
	/**货物分类代码(代码集)*/
	@Excel(name = "货物分类代码(代码集)", width = 15, dicCode = "cargo_type_classification_code")
	@Dict(dicCode = "cargo_type_classification_code")
	@ApiModelProperty(value = "货物分类代码(代码集)")
	private String cargoTypeClassificationCode;
	/**总件数*/
	@Excel(name = "总件数", width = 15)
	@ApiModelProperty(value = "总件数")
	private Integer totalNumberOfPackages;

	/**总件数*/
	@Excel(name = "需要车数", width = 15)
	@ApiModelProperty(value = "需要车数")
	private Integer vehicleNum;

	/**体积*/
	@Excel(name = "体积", width = 15)
	@ApiModelProperty(value = "体积")
	private BigDecimal cube;
	/**货物项毛重*/
	@Excel(name = "货物项毛重", width = 15)
	@ApiModelProperty(value = "货物项毛重")
	private BigDecimal goodsItemGrossWeight;
	/**货物单价*/
	@Excel(name = "货物单价", width = 15)
	@ApiModelProperty(value = "货物单价")
	private BigDecimal goodsUnitPrice;
	/**货物总重量*/
	@Excel(name = "货物总重量", width = 15)
	@ApiModelProperty(value = "货物总重量")
	private BigDecimal goodsWeight;
	/**运费支付方式(1按运单结算2车队长结算)*/
	@Excel(name = "运费支付方式(1按运单结算2车队长结算)", width = 15, dicCode = "pay_type")
	@Dict(dicCode = "pay_type")
	@ApiModelProperty(value = "运费支付方式(1按运单结算2车队长结算)")
	private String payType;
	/**车队长id(按车队长时)*/
	@Excel(name = "车队长id(按车队长时)", width = 15)
	@Dict(dictTable = "hy_carrier", dicText = "carrier_name", dicCode = "id")
	@ApiModelProperty(value = "车队长id(按车队长时)")
	private String carrierId;
	/**亏损货物单价*/
	@Excel(name = "亏损货物单价", width = 15)
	@ApiModelProperty(value = "亏损货物单价")
	private BigDecimal lossGoodsUnitPrice;
	/**运费单价*/
	@Excel(name = "运费单价", width = 15)
	@ApiModelProperty(value = "运费单价")
	private BigDecimal shippingUnitPrice;
	/**运费方式(1一口价2议价3竞价)*/
	@Excel(name = "运费方式(1一口价2议价3竞价)", width = 15, dicCode = "shipping_type")
	@Dict(dicCode = "shipping_type")
	@ApiModelProperty(value = "运费方式(1一口价2议价3竞价)")
	private String shippingType;
	/**亏损免赔比例*/
	@Excel(name = "亏损免赔比例", width = 15)
	@ApiModelProperty(value = "亏损免赔比例")
	private BigDecimal lossProportion;
	/**发货地址*/
	@Excel(name = "发货地址", width = 15, dictTable = "hy_customer_address_send", dicText = "address_name", dicCode = "id")
	@Dict(dictTable = "hy_customer_address_send", dicText = "address_name", dicCode = "id")
	@ApiModelProperty(value = "发货地址")
	private String addressSendId;
	/**要求发货时间*/
	@Excel(name = "要求发货时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "要求发货时间")
	private Date sendDate;
	/**收货地址*/
	@Excel(name = "收货地址", width = 15, dictTable = "hy_customer_address_receive", dicText = "address_name", dicCode = "id")
	@Dict(dictTable = "hy_customer_address_receive", dicText = "address_name", dicCode = "id")
	@ApiModelProperty(value = "收货地址")
	private String addressReceiveId;
	/**要求交货时间*/
	@Excel(name = "要求交货时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "要求交货时间")
	private Date receiveDate;
	/**要求的车辆父类型*/
	@Excel(name = "要求的车辆父类型", width = 15)
	@ApiModelProperty(value = "要求的车辆父类型")
	private String vehiclePtype;
	/**要求的车辆类型*/
	@Excel(name = "要求的车辆类型", width = 15)
	@ApiModelProperty(value = "要求的车辆类型")
	private String vehicleType;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
	private String remark;
	/**创建人*/
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新人*/
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**删除状态(0-正常,1-已删除)*/
	@Excel(name = "删除状态(0-正常,1-已删除)", width = 15)
	@ApiModelProperty(value = "删除状态(0-正常,1-已删除)")
	@TableLogic
	private String delFlag;
	/**审核状态(0待审核 1审核通过 2审核失败)*/
	@Excel(name = "审核状态(0待审核 1审核通过 2审核失败)", width = 15)
	@Dict(dicCode = "examine_status")
	@ApiModelProperty(value = "审核状态(0待审核 1审核通过 2审核失败)")
	private String examineStatus;
	/**审核时间*/
	@Excel(name = "审核时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "审核时间")
	private Date examineDate;
	/**审核备注*/
	@Excel(name = "审核备注", width = 15)
	@ApiModelProperty(value = "审核备注")
	private String examinRemark;
	/**货源状态*/
	@Excel(name = "货源状态", width = 15, dicCode = "order_status")
	@Dict(dicCode = "order_status")
	@ApiModelProperty(value = "货源状态")
	private String orderStatus;

	private HyCustomerAddressSend send;
	private HyCustomerAddressReceive receive;
}
